import request from '../utils/request'

//获取编辑时候商品列表回显
export function getRoleForDetail(params) {
  return request({
    method: 'get',
    url: '/api/PCApplet/QueryRole_Admin',
    params,
  })
}

//设置身份修改
export function updateRole(data) {
  return request({
    method: 'post',
    url: '/api/PCApplet/UpdateRole_Admin',
    data,
  })
}

//设置身份添加
export function addRole(data) {
  return request({
    method: 'post',
    url: '/api/PCApplet/AddRole_Admin',
    data,
  })
}

//身份删除
export function deleteRole(params) {
  return request({
    method: 'get',
    url: '/api/PCApplet/DeleteRole_Admin',
    params,
  })
}

//是否开启月结
export function roleUpdateState(params) {
  return request({
    method: 'get',
    url: '/api/PCApplet/RoleUpdateState_Admin',
    params,
  })
}

//是否开启预约
export function roleUpdateAppointmentStatus(params) {
  return request({
    method: 'get',
    url: '/api/PCApplet/UpdateAppointmentStatus',
    params,
  })
}
